body,
blockquote,
hr,
p,
ul,
ol,
li,
table,
thead,
tr,
th,
td,
h1,
h2,
h3,
h4,
h5,
h6,
dl,
dd,
pre,
code,
img,
mark,
strong,
em,
checkbox,
del,
button,
figure,
input,
textarea,
form,
tbody {
    margin: 10px 10px;
    padding: 0;
    /* 移动端可点击元素去处默认边框 */
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

/* 统一 input、select、textarea 宽度 */
input,
select,
textarea {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

/* 移除浏览器部分元素的默认边框 */
img,
button,
textarea {
    border: none;
    -webkit-appearance: none;
}

input[type="checkbox"] {
    /* border: none;
    -webkit-appearance: none; */
    list-style: none;
    background: #8246cc;
    cursor: pointer;
    border: none;
}

li.task-list-item {
    list-style-type: none;
    text-indent: -20px;
}

/* 取消元素 outline 样式 */
a,
h1,
h2,
h3,
h4,
h5,
h6,
input,
select,
button,
option,
textarea,
optgroup {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    line-height: inherit;
    color: inherit;
    outline: none;
}

/* 取消部分浏览器数字输入控件的操作按钮 */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

input {
    /*由于 input 默认不继承父元素的居中样式，所以设置：text-align: inherit*/
    text-align: inherit;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #999;
}

input:-moz-placeholder,
textarea:-moz-placeholder {
    color: #999;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #999;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #999;
}

template {
    /*由于部分浏览 template 会显示出来，所以要隐*/
    display: none;
}

textarea {
    /*textarea 默认不可以放缩*/
    resize: none;
}

table {
    /*table 相邻单元格的边框间的距离设置为 0*/
    border-spacing: 0;
    /*默认情况下给 tr 设置 border 没有效果，如果 table 设置了边框为合并模式：border-collapse: collapse;就可以了*/
    border-collapse: collapse;
    text-align: center;
}

/* 鼠标手型 */
a[href],
input[type="submit"],
input[type="image"],
input[type="button"],
label[for],
select,
button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
    font-weight: bold;
}

html {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 10px;
}

*::selection {
    color: #02ad3e;
    background-color: pink;
}

*::-moz-selection {
    color: #02ad3e;
    background-color: pink;
}

body:before {
    content: "";
    position: fixed;
    top: -10px;
    left: 0;
    width: 100%;
    height: 5px;
    -webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, .8);
    -moz-box-shadow: 0px 0px 20px rgba(0, 0, 0, .8);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, .8);
    z-index: 100;
}

body {
    line-height: 1.75;
    color: #595959;
    font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;
    word-spacing: 2px;
    letter-spacing: 0.06em;
    box-sizing: border-box;
    position: relative;
}

/* 指示器元素 */
.indicator {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(to right top, #DEC6FB 50%, transparent 50%) no-repeat;
    background-size: 100% calc(100% - 100vh);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: darken;
}

.indicator::after {
    content: '';
    position: fixed;
    top: 3px;
    bottom: 0;
    right: 0;
    left: 0;
    background: #fff;
    z-index: 1;
}

/*夜间模式*/
@media (prefers-color-scheme: dark) {
    html {
        /* filter: invert(100%); */
        /* filter: grayscale(1.0); */
        color: rgba(230, 230, 230, 1);
    }

    body {
        background: rgb(36, 36, 36);
        color: rgb(230, 230, 230);
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: rgba(230, 230, 230, 1);
    }

    html strong {
        color: rgba(230, 230, 230, 1);
    }

    html h3 {
        color: #e2ae63;
        background: transparent;
        border-bottom: 3px solid #e2ae63;
    }

    html blockquote {
        color: #ba89f5;
        background: rgba(36, 36, 36, .8);
    }

    html p code {
        background: #151718;
    }

    html pre {
        color: #02ad3e;
        background: #151718;
    }

    html .hljs {
        background: transparent;
    }

    html .language-diff {
        color: rgba(230, 230, 230, 1);
    }
}

/* 当浏览器的可视区域小于980px */
@media screen and (max-width: 980px) {
    body {}
}

/* 当浏览器的可视区域大于980px */
@media screen and (min-width: 914px) {
    body {
        width: 854px;
        margin: 0 auto;
        padding: 10px;
        border-left: 1px solid rgba(186, 137, 245, 0.75);
        border-right: 1px solid rgba(186, 137, 245, 0.75);
        box-shadow: rgb(170, 170, 170) 0px 0px 15px inset;
    }
}

p {
    font-size: 1.6rem;
    line-height: 1.75;
}

h1 {
    font-size: 2.4rem;
    text-align: center;
    /* background-image: url(./titlt-bg.svg); */
    background-image: url(./title-h1.svg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 95px;
    line-height: 95px;
    margin-top: 38px;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.92rem;
    font-weight: bold;
    margin: 20px auto;
    display: block;
    padding-left: 10px;
    border-left: 5px solid #664D9D;
}

h3 {
    text-align: center;
    display: inline-block;
    margin: 20px auto;
    padding: 0 5px;
    font-size: 1.76rem;
    background: linear-gradient(white 60%, #F6EEFF 40%);
    border-bottom: 2px solid #DEC6FB;
    position: relative;
    left: 50%;
    -webkit-transform: -webkit-translateX(-50%);
    -moz-transform: -moz-translateX(-50%);
    -o-transform: -o-translateX(-50%);
    transform: translateX(-50%);
}

h4 {}

h6 {}

mark {
    margin: 0;
    padding: 0px 5px;
    color: #595959;
    /* background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%); */
    /* background-image: linear-gradient(90deg, rgb(252, 187, 45), rgb(34, 193, 195)); */
    background-image: linear-gradient(to right, #fa709a 0%, #fee140 100%);
}

hr {
    height: 1px;
    padding: 0;
    margin: 20px 0;
    border: none;
    border-top: medium solidid #333;
    text-align: center;
    background-image: linear-gradient(to right, rgba(186, 137, 245, 0), rgba(186, 137, 245, 0.75), rgba(186, 137, 245, 0));
}

ul,
ol {
    /* text-indent: -20px; */
    margin: 20px;
    font-size: 1.6rem;
}

ul {
    /* list-style: circle; */
}

/* <ol start="50">以 50 开始 */
ol {
    list-style-type: decimal;
}

li {
    /* padding-left: 20px; */
}

li:nth-of-type(odd) {
    color: #be7467;
}

li:nth-of-type(even) {
    /*even 设置偶数行*/
    color: #e2ae63;
}

p code,
li code {
    color: #07c160;
    font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;
    background: rgb(230, 230, 230);
    padding: 3px 5px;
    border-radius: 2px;
}

blockquote::before {
    content: "“";
    font-family: "Chalkboard SE", "Bangla Sangam MN", "Gill Sans", serif;
    color: #ba89f5;
    font-size: 3.4rem;
    line-height: 1;
    font-weight: 700;
}

blockquote {
    text-size-adjust: 100%;
    font-weight: 400;
    border-radius: 0px;
    color: #595959;
    font-style: normal;
    text-align: left;
    box-sizing: inherit;
    border: 1px solid #DEC6FB;
    background: #F6EEFF;
    padding: 10px 10px;
    border-radius: 6px;
}

/* 首字下沉 */
blockquote p:nth-child(1)::first-letter {
    float: left;
    /* color: green; */
    font-size: 3rem;
    line-height: 1;
    margin-top: 5px;
}

blockquote::after {
    content: '"';
    font-family: "Chalkboard SE", "Bangla Sangam MN", "Gill Sans", serif;
    display: block;
    color: #ba89f5;
}

a {
    color: #664D9D;
    font-weight: normal;
    text-decoration: none;
    border-bottom: 1px solid #664D9D;
}

strong::before {
    /* content: '「'; */
}

/* 加粗 */
strong {
    color: #595959;
    font-weight: bold;
}

strong::after {
    /* content: '」'; */
}

img {
    border-radius: 10px;
    display: block;
    margin: 20px auto;
    object-fit: contain;
    max-width: 90%;
    cursor: pointer;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
    box-shadow: 0 1px 6px rgba(36, 37, 38, .08);
}

img:hover {
    outline: none;
    -webkit-box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
    box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
    -webkit-transform: translate3d(0, -2px, 0);
    transform: translate3d(0, -2px, 0);
}

/* 行内代码 */
code {
    font-size: 1.44rem;
    margin: 0;
    padding: 0;
    font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;
}

/* 代码块背景 */
pre {
    padding: 10px;
    border: 1px solid #ccc;
    background: transparent;
    border-radius: 5px;
    overflow-x: auto;
}

pre::before {
    content: '';
    display: block;
    background: transparent;
    background: url(./preCode-bg-s.svg);
    height: 20px;
    width: 100%;
    background-size: 40px;
    background-repeat: no-repeat;
    margin-bottom: -7px;
    border-radius: 5px 5px 0 0;
}

/* 代码块 */
pre code {
    color: #664D9D;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    word-break: keep-all;
}

pre::after {
    content: '';
}

html .hljs {
    background: transparent;
}

table {
    border-collapse: collapse;
    border: 1px solid #dfdfdf;
    margin: 20px 0;
    width: 100%;
    font-size: 1.6rem;
}

thead {
    background: rgba(0, 0, 0, 0.05);
}

th {
    /* background: greenyellow; */
    border: 1px solid #dfdfdf;
    padding: 4px 8px;
}

td {
    border: 1px solid #dfdfdf;
    padding: 4px 8px;
}

a[href^="http"]:empty::before {
    content: attr(href);
}